package com.tw.wechart2.util;

import android.app.Activity;
import android.content.Context;
import android.view.Display;

public class Util {
    public static Util instance;

    public static Util instance() {
        if (instance == null) {
            synchronized (MyLogUtils.class) {
                if (instance == null) {
                    instance = new Util();
                }
            }
        }
        return instance;
    }
    public int getScreenWidth(Context context) {
        Display display = ((Activity)context).getWindowManager().getDefaultDisplay();
        return display.getWidth();
    }
}
